#!/bin/bash

for pid in `ps -e -o pid,command | grep -v grep | grep hpima | awk '{print $1}'`
do
	echo "Killing $pid"
	kill -s SIGKILL $pid
done

sleep 2

service hpima status

sleep 2

echo "Mibistry file left: "
find /var/opt/hp/hpima/registry | wc -l
